import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

const pre = 'serviceInformation_';
const meta = {
  auth: true,
};
export default {
  path: `${routePre}/serviceInformation`,
  name: 'serviceInformation',
  header: 'serviceInformation',
  redirect: {
    name: `${pre}serviceList`,
  },
  meta,
  component: LayoutMain,
  children: [
    {
      path: 'serviceList',
      name: `${pre}serviceList`,
      meta: {
        auth: ['serviceInformation-service-List'],
        title: '服务信息',
      },
      component: () => import('@/pages/serviceInformation/serviceList'),
    },
    {
      path: 'doctorInformation',
      name: `${pre}doctorInformation`,
      meta: {
        auth: ['serviceInformation-doctor-Information-index'],
        title: '医生信息',
      },
      component: () => import('@/pages/serviceInformation/doctorInformation'),
    },
  ],
};
